{include file="public/head"/}
  
  <body>
    <div class="x-body">
        <form class="layui-form" action="{:url('admin/Apiuser/apiuser')}?userid={$userid}&type={$type}&locksnid={$locksnid}" method="post" enctype="multipart/form-data">
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="community_id" lay-filter="commname" id="commname">
                        <option value=""><------选择小区------></option>
                        {foreach $community as $com}
                        <option value="{$com.id}">{$com.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>姓名:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="name" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>手机号:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="phone" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>身份证号:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="identity" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>访问事由:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="cause" lay-filter="commname" id="commname">
                        <option value=""><------选择事由------></option>
                        {foreach $causelist as $com}
                        <option value="{$com.id}">{$com.content}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>备注:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="remarks" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    提交
                </button>
            </div>
        </form>
    </div>
    </body>
</html>